package com.howie.common.constant;

/**
 * @description: 商品系统模块常用的常量
 * @author: laizhenghua
 * @date: 2020/12/21 14:35
 */
public class ProductConstant {
    public enum AttrEnum{
        // 1、提供当前枚举类对象
        ATTR_TYPE_BASE(1,"基本属性(规格参数)"),ATTR_TYPE_SALE(0,"销售属性");

        // 2、声明枚举类对象的属性
        private final Integer code;
        private final String message;

        // 3、构造器私有化
        private AttrEnum(Integer code,String message){
            this.code = code;
            this.message = message;
        }
        // 4、获取枚举类对象的属性
        public Integer getCode(){
            return this.code;
        }
        public String getMessage(){
            return this.message;
        }
    }
    public enum StatusEnum{
        NEW_SPU(0,"新建"),SPU_UP(1,"商品上架"),SPU_DOWN(2,"商品下架");
        private final Integer code;
        private final String message;

        private StatusEnum(Integer code,String message){
            this.code = code;
            this.message = message;
        }
        public Integer getCode(){
            return this.code;
        }
        public String getMessage(){
            return this.message;
        }
    }
}
